package com.iwayin.core.bo.comment;

import java.util.List;

import com.iwayin.core.dataobject.CommentDO;
import com.iwayin.core.dataobject.UserDO;

public interface CommentBO {
	/**
	 * 添加评论
	 * 
	 * @param commentDO
	 * @return
	 */
	public Long addComment(CommentDO commentDO);

	/**
	 * 删除评论
	 * 
	 * @param comment
	 */
	public void deleteComment(CommentDO comment);

	/**
	 * 获取某个问题的评论
	 * 
	 * @param query
	 * @return
	 */
	public List<CommentDO> findAskComments(CommentDO query);

	/**
	 * 查询当天最多评论TOP用户
	 * 
	 * @param size
	 * @return
	 */
	public List<UserDO> findMostCommentToday(Long size);

	/**
	 * comment同上+1
	 * 
	 * @param commentId
	 */
	public void commentDittoPlusOne(Long commentId);

	/**
	 * 评论同上数-1
	 * 
	 * @param commentId
	 */
	public void cancelCommentDitto(Long commentId);
}
